/*************************************************************************
> File Name: stack.h
> Author: icebear
> Mail: 3322366195@qq.com
> Created Time: 2023-07-24 19:01:18
> Description: 数组实现栈
************************************************************************/
#ifndef STACK_H
#define STACK_H
typedef struct arrayStack
{
    int *p; // 空指针
    int size;
} Stack;
Stack *create();
int destory(Stack *stack);
void push(Stack *stack, int item);
int pop(Stack *stack);
int peek(Stack *stack);
int isEmpty(Stack *stack);
int size(Stack *stack);
#endif